<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List,cx.cx.pojo.Car"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详情</title>

<link rel="stylesheet" href="css/bootstrap.css" />
<script src="js/jquery-3.4.1.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>

<style>
</style>
</head>
<body>

	<%
		List<Car> carname = (List<Car>) session.getAttribute("carname");
	%>
	<div class="container">
		<div class="row">

			
			<div class="col-md-2">

				<img src="<%=carname.get(0).getImg()%>" />

			</div>
			<div class="col-md-5"></div>
			<form id="update_info" action="update" method="post">
			    
				<input id="id" type="hidden" value="<%=carname.get(0).getId()%>" name="id"/>
				
				<div class="col-md-5">


					<div class="form-group">
						<label for="exampleInputEmail1">车名</label> 
						<input type="text" name="carname" class="form-control" placeholder="Test" value="<%=carname.get(0).getCarName()%>" style="width:75%">
					</div>

					<div class="form-group">
						<label for="exampleInputEmail1">价格</label> 
						<input type="text" class="form-control"  placeholder="Test" name="carprice" value="<%=carname.get(0).getPrice()%>" style="width:75%">
					</div>

					<div class="form-group">
						<label for="exampleInputPassword1">上传时间</label> 
						<input type="text" value="<%=carname.get(0).getCarLoadtime()%>" class="form-control" placeholder="Password" name="carloadtime" style="width:75%">
					</div>

					<div class="form-group">
						<label for="exampleInputPassword1">里程数</label> 
						<input type="text" value="<%=carname.get(0).getMileage()%>" class="form-control" placeholder="Password" name="carmileage" style="width:75%">
					</div>
					<div class="form-group">
						<label for="exampleInputPassword1">变速箱</label> 
						<input type="text" value="<%=carname.get(0).getGearbox()%>" class="form-control" placeholder="Password" name="cargearbox" style="width:75%">
					</div>
					<div class="form-group">
						<label for="exampleInputPassword1">排量</label> 
						<input type="text" value="<%=carname.get(0).getVolume()%>" class="form-control" placeholder="Password" name="carvolume" style="width:75%">
					</div>


					<button type="submit" class="btn btn-primary"
						style="margin-top: 15px">修改</button>
				</div>
			</form>
		</div>
</body>
</html>